class Mapper066:MapperDefault{
	
	protected internal override void init(NES nes){
		
		base.init(nes);
		
	}
	
	protected internal override void write(int address, short value){
		
		if(address < 0x8000){
			
			// Let the base mapper take care of it.
			base.write(address,value);
			
		}else{
			
			// Swap in the given PRG-ROM bank at 0x8000:
			load32kRomBank((value>>4)&3,0x8000);
			
			// Swap in the given VROM bank at 0x0000:
			load8kVromBank((value&3)*2,0x0000);
			
		}
		
	}	
	
}